package com.ijunfu.config._03_java;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @title  : 
 * @author : ijunfu <ijunfu@163.com>
 * @date   : 2023/10/28 15:01
 * @version: 1.0
 * @motto  : 位来可期 - 世界很大，我想看看
 *
 */
@Slf4j
public class JavaConfigMain {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SystemConfiguration.class);

        SystemConfiguration conf = context.getBean(SystemConfiguration.class);

        log.info("SystemName={}", conf.getSystemName());
    }
}
